package com.wjx.dtos;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Data
public class result {
    public int code;
    public String message;
    public Object data;


    public  result ok(String message) {
        result result = new result();
        result.code = 200;
        result.message = message;
        result.data = null;

        return result;
    }

    public result error(String message) {
        result result = new result();

        result.code = 500;
        result.message = message;
        result.data = null;

        return result;
    }

}
